
local cont_row = lv.obj_create( lv.scr_act() );

lv.obj_set_size( cont_row, 300, 75 );

lv.obj_align( cont_row, lv.LV_ALIGN_TOP_MID, 0, 5 );

lv.obj_set_flex_flow( cont_row, lv.LV_FLEX_FLOW_ROW );

local cont_col = lv.obj_create( lv.scr_act() );

lv.obj_set_size( cont_col, 200, 150 );

lv.obj_align_to( cont_col, cont_row, lv.LV_ALIGN_OUT_BOTTOM_MID, 0, 5 );

lv.obj_set_flex_flow( cont_col, lv.LV_FLEX_FLOW_COLUMN );

for i = 0, 9 do

	local obj = lv.btn_create( cont_row );

	lv.obj_set_size( obj, 100, lv.pct( 100 ) );

	local label = lv.label_create( obj );

	lv.label_set_text( label, string.format( "Item: %d", i ) );

	lv.obj_center( label );

	obj = lv.btn_create( cont_col );

	lv.obj_set_size( obj, lv.pct( 100 ), lv.LV_SIZE_CONTENT );

	label = lv.label_create( obj );

	lv.label_set_text( label, string.format( "Item: %d", i ) );

	lv.obj_center( label );
end
